
package com.ysy.java.plugin;

import org.objectweb.asm.Label;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Opcodes;

import java.lang.reflect.Proxy;

import static org.objectweb.asm.Opcodes.INVOKESTATIC;
import static org.objectweb.asm.Opcodes.POP;

public class MyClassVisitorMethod extends MethodVisitor {

    public MyClassVisitorMethod(MethodVisitor mv) {
        super(Opcodes.ASM4, mv);
    }

    @Override
    public void visitCode() {
        super.visitCode();
        Label label5 = new Label();
        mv.visitLabel(label5);
        mv.visitLineNumber(39, label5);
        mv.visitLdcInsn("\u8fd9\u662f\u4e00\u4e2a\u52a8\u6001\u65e5\u5fd7tag");
        mv.visitLdcInsn("\u8fd9\u662f\u4e00\u4e2a\u52a8\u6001\u65e5\u5fd7msg");
        mv.visitMethodInsn(INVOKESTATIC, "android/util/Log", "e", "(Ljava/lang/String;Ljava/lang/String;)I", false);
        mv.visitInsn(POP);
    }




}


